Optimal. Leaf size=134 \[ \frac{c^3 2^{-\frac{m}{2}+\frac{n}{2}+3} (a \sin (e+f x)+a)^m (c-c \sin (e+f x))^n (1-\sin (e+f x))^{\frac{m-n}{2}} (g \cos (e+f x))^{-m-n} \, _2F_1\left (\frac{1}{2} (m-n-4),\frac{m-n}{2};\frac{1}{2} (m-n+2);\frac{1}{2} (\sin (e+f x)+1)\right )}{f g (m-n)} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.382441, antiderivative size = 134, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 4, integrand size = 45, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.089, Rules used = {2853, 2689, 70, 69} \[ \frac{c^3 2^{-\frac{m}{2}+\frac{n}{2}+3} (a \sin (e+f x)+a)^m (c-c \sin (e+f x))^n (1-\sin (e+f x))^{\frac{m-n}{2}} (g \cos (e+f x))^{-m-n} \, _2F_1\left (\frac{1}{2} (m-n-4),\frac{m-n}{2};\frac{1}{2} (m-n+2);\frac{1}{2} (\sin (e+f x)+1)\right )}{f g (m-n)} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2853
Rule 2689
Rule 70
Rule 69
Rubi steps
\begin{align*} \int (g \cos (e+f x))^{-1-m-n} (a+a \sin (e+f x))^m (c-c \sin (e+f x))^{3+n} \, dx &=\left ((g \cos (e+f x))^{-2 m} (a+a \sin (e+f x))^m (c-c \sin (e+f x))^m\right ) \int (g \cos (e+f x))^{-1+m-n} (c-c \sin (e+f x))^{3-m+n} \, dx\\ &=\frac{\left (c^2 (g \cos (e+f x))^{-m-n} (a+a \sin (e+f x))^m (c-c \sin (e+f x))^{m+\frac{1}{2} (-m+n)} (c+c \sin (e+f x))^{\frac{1}{2} (-m+n)}\right ) \operatorname{Subst}\left (\int (c-c x)^{3-m+\frac{1}{2} (-2+m-n)+n} (c+c x)^{\frac{1}{2} (-2+m-n)} \, dx,x,\sin (e+f x)\right )}{f g}\\ &=\frac{\left (2^{2-\frac{m}{2}+\frac{n}{2}} c^4 (g \cos (e+f x))^{-m-n} (a+a \sin (e+f x))^m (c-c \sin (e+f x))^{\frac{m}{2}+\frac{n}{2}+\frac{1}{2} (-m+n)} \left (\frac{c-c \sin (e+f x)}{c}\right )^{\frac{m}{2}-\frac{n}{2}} (c+c \sin (e+f x))^{\frac{1}{2} (-m+n)}\right ) \operatorname{Subst}\left (\int \left (\frac{1}{2}-\frac{x}{2}\right )^{3-m+\frac{1}{2} (-2+m-n)+n} (c+c x)^{\frac{1}{2} (-2+m-n)} \, dx,x,\sin (e+f x)\right )}{f g}\\ &=\frac{2^{3-\frac{m}{2}+\frac{n}{2}} c^3 (g \cos (e+f x))^{-m-n} \, _2F_1\left (\frac{1}{2} (-4+m-n),\frac{m-n}{2};\frac{1}{2} (2+m-n);\frac{1}{2} (1+\sin (e+f x))\right ) (1-\sin (e+f x))^{\frac{m-n}{2}} (a+a \sin (e+f x))^m (c-c \sin (e+f x))^n}{f g (m-n)}\\ \end{align*}
Mathematica [F] time = 145.704, size = 0, normalized size = 0. \[ \int (g \cos (e+f x))^{-1-m-n} (a+a \sin (e+f x))^m (c-c \sin (e+f x))^{3+n} \, dx \]
Verification is Not applicable to the result.
[In]
[Out]
________________________________________________________________________________________
Maple [F] time = 0.615, size = 0, normalized size = 0. \begin{align*} \int \left ( g\cos \left ( fx+e \right ) \right ) ^{-1-m-n} \left ( a+a\sin \left ( fx+e \right ) \right ) ^{m} \left ( c-c\sin \left ( fx+e \right ) \right ) ^{3+n}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \left (g \cos \left (f x + e\right )\right )^{-m - n - 1}{\left (a \sin \left (f x + e\right ) + a\right )}^{m}{\left (-c \sin \left (f x + e\right ) + c\right )}^{n + 3}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left (\left (g \cos \left (f x + e\right )\right )^{-m - n - 1}{\left (a \sin \left (f x + e\right ) + a\right )}^{m}{\left (-c \sin \left (f x + e\right ) + c\right )}^{n + 3}, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \left (g \cos \left (f x + e\right )\right )^{-m - n - 1}{\left (a \sin \left (f x + e\right ) + a\right )}^{m}{\left (-c \sin \left (f x + e\right ) + c\right )}^{n + 3}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]